<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> - 选项卡 &amp; 面板</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> <link href="/Public/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/Public/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/Public/css/animate.css" rel="stylesheet">
    <link href="/Public/css/style.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">

<div class="row">
    <div class="col-sm-12">
        <div class="tabs-container">
            <ul class="nav nav-tabs">
                <li id="record_1"><a href="<{$SRVER_NAME}>/admin.php/UserCenter/communicate_record1?type=1&vid=<{$vid}>&page1=<{$page1}>&rid=<{$rid}>&user_content=<{$user_content}>">客服沟通记录</a></li>
                <!--<li id="record_2"><a href="<{$SRVER_NAME}>/admin.php/UserCenter/communicate_record1?type=2&vid=<{$vid}>&page1=<{$page1}>&rid=<{$rid}>&user_content=<{$user_content}>">贷后催收记录</a></li>-->
                <div class="tooltip-demo" style="margin-top: 5px;">
                    <a href="<{$SRVER_NAME}>/admin.php/UserCenter/user_list_info?rid=<{$rid}>&page=<{$page1}>&user=<{$user_content}>" class="btn btn-white btn-sm" data-toggle="tooltip" data-placement="top" title="返回"><i class="fa fa-reply"></i> 返回</a>
                </div>
            </ul>
            <div class="tab-content">
                <div  class="tab-pane active">
                    <div class="panel-body">
                        <div class="ibox-content">
                            <div class="col-sm-12" style="margin-bottom: 1rem">
                                <form role="form" action="<{$SRVER_NAME}>/admin.php/UserCenter/communicate_record" method="get">
                                    <div class="form-group" style="display: flex">
                                        <input  type="text" name="rid" value="<{$rid}>" hidden/>
                                        <input  type="text" name="page1" value="<{$page1}>" hidden/>
                                        <input  type="text" name="user_content" value="<{$user_content}>" hidden/>
                                        <input  type="text" name="vid" value="<{$vid}>" hidden/>
                                        <input  type="text" name="type" value="<{$type}>" hidden/>
                                        <input type="text" id="user" placeholder="" name="user" class="form-control" style="width: 90%"> &nbsp; &nbsp;
                                        <button class="btn btn-sm btn-primary pull-right m-t-n-xs" type="submit" id="search" style=" width: 80px;height: 34px;margin-top: 0px;">搜索
                                        </button>
                                    </div>

                                </form>
                            </div>
                            <br />

                            <if condition="($type eq '1')">
                                <table class="table table-striped table-bordered table-hover" id="sample-table">
                                    <thead>
                                    <tr>
                                        <th>用户反馈内容</th>
                                        <th>客服反馈内容</th>
                                        <th>记录创建时间</th>
                                        <th>状态</th>
                                        <th>记录人</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <volist name="user" id="vo" key="i">
                                        <tr>
                                            <td><{$vo.content}></td>
                                            <td><{$vo.back_content}></td>

                                            <td><{$vo.ctime}></td>
                                            <td><{$vo.status}></td>
                                            <td><{$vo.kefu_name}></td>
                                            <td>
                                                <a href="<{$SRVER_NAME}>/admin.php/ContactCenter/kf_feedback_detail?id=<{$vo.id}>&type2=1&vid=<{$vid}>&page=<{$page1}>&rid=<{$rid}>&user_content=<{$user_content}>"   class="btn btn-success btn-rounded" >详情</a>
                                            </td>
                                        </tr>
                                    </volist>
                                    </tbody>
                                </table>
                            </if>
                            <!--贷后催收记录-->
                            <if condition="($type eq '2')">
                                <table class="table table-striped table-bordered table-hover" id="sample-table">
                                    <thead>
                                    <tr>
                                        <th>沟通备注信息</th>
                                        <th>记录创建时间</th>
                                        <th>记录人</th>

                                    </tr>
                                    </thead>
                                    <tbody>
                                    <volist name="data" id="vo" key="i">
                                        <tr>
                                            <td><{$vo.borrow_no}></td>
                                            <td><{$vo.repay_money}></td>
                                            <td><{$vo.repay_time}></td>
                                            <td><{$vo.real_time}></td>
                                            <td><{$vo.type}></td>
                                            <td><{$vo.status}></td>
                                        </tr>
                                    </volist>
                                    </tbody>
                                </table>
                            </if>

                            <div class="dataTables_paginate paging_simple_numbers" >
                                <ul class="pagination">
                                    <if condition="$tol gt 10">
                                        <{$fpage}>
                                    </if>

                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>


        </div>
    </div>


</div>

<!-- 全局js -->
<script src="/Public/js/jquery.min.js?v=2.1.4"></script>
<script src="/Public/js/bootstrap.min.js?v=3.3.6"></script>
<!-- 自定义js -->
<script src="/Public/js/content.js?v=1.0.0"></script>
<script src="/Public/js/plugins/layer/layer.min.js"></script>
<script>
    $(function () {
        var type="<{$type}>";
        $("#record_1").removeClass('active');
        if(type==1){
            $("#record_1").addClass('active');
        }else    if(type==2) {
            $("#record_2").addClass('active');

        }
    });
</script>
</body>

</html>
